<%@page import="cn.zgz.service.managerService"%>
<%@page import="java.util.List" %>
<%@page import="cn.zgz.model.*" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="./css/bootstrap.min.css">
<link rel="stylesheet" href="./css/font-awesome.min.css">
<title>Insert title here</title>
</head>
<body>
	<script src="./js/jquery.slim.min.js"></script>
	<script src="./js/popper.min.js"></script>
	<script src="./js/bootstrap.min.js"></script>
	<script src="./layer/layer.js"></script>
	<script src="./js/sweetalert2.all.min.js"></script>
	<script src="./js/axios.min.js"></script>
	<script src="./js/vue.min.js"></script>
	<script src="./js/request.js"></script>
	<div id = "app" class="my-container">
		<table class="table">
			<thead>
				<tr style="text-align: center">
					<th>管理编号</th><th>管理名称</th><th>管理姓名</th><th>管理工号</th><th>管理电话</th><th>管理权限</th><th>管理描述</th>
				</tr>
				<tbody style="text-align: center">
					<%
					//在JSP中直接调用JavaBean，model1开发模式
					managerService mS = new managerService();
					List<managerModel> list = mS.findAll();
					if(list!=null&&list.size()>0){
						for(int i = 0;i<list.size();i++){
					%>		
						<tr>
							<td><%=list.get(i).getmId()%></td>
							<td><%=list.get(i).getmName() %></td>
							<td><%=list.get(i).getmRealName() %></td>
							<td><%=list.get(i).getmNo() %></td>
							<td><%=list.get(i).getmPhone() %></td>
							<td><%=list.get(i).getmPower() %></td>
							<td><%=list.get(i).getmDescrible() %></td>
						</tr>
						<% 
						}
					}
						%>
				</tbody>
			</thead>
		</table>
	</div>
</body>
</html>